<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'login.jsp' starting page</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" type="text/css" href="resources/css/ext-all.css">
	<script>
		function checkInput(){
		
			var name=document.getElementById("userSn");
			var password=document.getElementById("userPwd");
			if(name.value==""){			
				alert("提示","用户名不能为空");
				name.focus();
				return false;
			}
			if(password.value==""){
				alert("提示","密码不能为空");	
				password.focus();
				return false;
			}else if(password.value.length<6||password.value.length>11){
				alert("提示","密码长度为6-11位");
				password.select();
				return false;
			}
			return true;
		}
		function dologin(){
			if(checkInput){
				doSubmit();
			}
		}
		function doSubmit(){
			document.forms[0].submit();
		}
	</script>
<style>
		th{
			font-size:12px;
			text-align:right;
			font-weight:normal;
		}
		td{
			font-size:12px;
			text-align:left;
		}
		input{
			width:100px;
			font-size:12px;
			border:solid 1px lightblue;
		}
	</style>

  </head>
  
<body  BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 style="text-align:center;padding-top:20px;">
  <s:form action="login" method="post">
	<TABLE WIDTH=800 BORDER=0 CELLPADDING=0 CELLSPACING=0 align="center">
	  	<TR>
			<TD COLSPAN=7><IMG SRC="images/login/login_01.jpg" WIDTH=800 HEIGHT=71 ALT=""></TD>
			<TD><IMG SRC="images/login/spacer.gif" WIDTH=1 HEIGHT=71 ALT=""></TD>
		</TR>
		<TR>
			<TD COLSPAN=7>&nbsp;</TD>
			<TD><IMG SRC="images/login/spacer.gif" WIDTH=1 HEIGHT=66 ALT=""></TD>
		</TR>
		<TR>
			<TD COLSPAN=7><IMG SRC="images/login/login_03.jpg" WIDTH=800 HEIGHT=6 ALT=""></TD>
			<TD><IMG SRC="/images/login/spacer.gif" WIDTH=1 HEIGHT=6 ALT=""></TD>
		</TR>
		<TR>
	    	<TD COLSPAN=3>&nbsp; </TD>
			<TD COLSPAN=3 ROWSPAN=2><IMG SRC="images/login/login_05.jpg" WIDTH=426 HEIGHT=83 ALT=""></TD>
	    	<TD ROWSPAN=3>&nbsp;</TD>
			<TD><IMG SRC="images/login/spacer.gif" WIDTH=1 HEIGHT=44 ALT=""></TD>
		</TR>
		<TR>
	    	<TD ROWSPAN=4>&nbsp; </TD>
			<TD COLSPAN=2><IMG SRC="images/login/login_08.jpg" WIDTH=94 HEIGHT=39 ALT=""></TD>
			<TD><IMG SRC="images/login/spacer.gif" WIDTH=1 HEIGHT=39 ALT=""></TD>
		</TR>
		<TR>
			<TD ROWSPAN=3><IMG SRC="images/login/login_09.jpg" WIDTH=15 HEIGHT=141 ALT=""></TD>		
	    	<TD COLSPAN=2 ROWSPAN=2 background="images/login/login_10.jpg" >
	    
			<table width="100%">
		        <tr> 
		          <th>用户名</th>
		          <td><s:textfield id="userSn" name="user.userSn" size="10" maxlength="20" theme="simple"/></td>
		        </tr>
		        <tr>
		          <th>密码</th>
		          <td><s:password id="userPwd" name="user.userPwd" size="10" maxlength="20" theme="simple"/></td>
		        </tr>
		        <tr> 
		          <td>&nbsp;</td>
		          <td><img onclick="dologin();" src="images/login/login_button.jpg" width="73" height="25" title="登录"></td>
		        </tr>
		         <tr> 
		          <td colspan="2"><font color='red'><s:property value="loginFail"/></font></td>		        
		        </tr>
	      	</table>
	      	
	    </TD>
			<TD COLSPAN=2><IMG SRC="images/login/login_11.jpg" WIDTH=304 HEIGHT=86 ALT=""></TD>
			<TD><IMG SRC="images/login/spacer.gif" WIDTH=1 HEIGHT=86 ALT=""></TD>
		</TR>
		<TR>
			<TD ROWSPAN=2><IMG SRC="images/login/login_12.jpg" WIDTH=19 HEIGHT=55 ALT=""></TD>
	    	<TD COLSPAN=2 ROWSPAN=3>&nbsp;</TD>
			<TD><IMG SRC="images/login/spacer.gif" WIDTH=1 HEIGHT=28 ALT=""></TD>
		</TR>
		<TR>
			<TD COLSPAN=2><IMG SRC="images/login/login_14.jpg" WIDTH=201 HEIGHT=27 ALT=""></TD>
			<TD><IMG SRC="images/login/spacer.gif" WIDTH=1 HEIGHT=27 ALT=""></TD>
		</TR>
		<TR>
	    	<TD COLSPAN=5>&nbsp;</TD>
			<TD><IMG SRC="images/login/spacer.gif" WIDTH=1 HEIGHT=67 ALT=""></TD>
		</TR>
		<TR>
	    	<TD COLSPAN=7 background="images/login/login_16.jpg" style="text-align:right;padding-right:25px;">&copy; 2013 北京阿博泰克北大青鸟信息技术有限公司</TD>
			<TD><IMG SRC="images/login/spacer.gif" WIDTH=1 HEIGHT=55 ALT=""></TD>
		</TR>
		<TR>
			<TD><IMG SRC="images/login/spacer.gif" WIDTH=150 HEIGHT=1 ALT=""></TD>
			<TD><IMG SRC="images/login/spacer.gif" WIDTH=15 HEIGHT=1 ALT=""></TD>
			<TD><IMG SRC="images/login/spacer.gif" WIDTH=79 HEIGHT=1 ALT=""></TD>
			<TD><IMG SRC="images/login/spacer.gif" WIDTH=122 HEIGHT=1 ALT=""></TD>
			<TD><IMG SRC="images/login/spacer.gif" WIDTH=19 HEIGHT=1 ALT=""></TD>
			<TD><IMG SRC="images/login/spacer.gif" WIDTH=285 HEIGHT=1 ALT=""></TD>
			<td><img src="images/login/spacer.gif" WIDTH=130 HEIGHT=1 ALT=""></td>
			<td></td>
		</TR>
	</TABLE>
  </s:form>
  </body>
</html>
